fix: Stage-B-Sibling-Linking semantisch — related-Lücke bei lexikalisch disjunkten Titeln#82
Open
TillQuandel wants to merge 1 commit into
Open
fix: Stage-B-Sibling-Linking semantisch — related-Lücke bei lexikalisch disjunkten Titeln#82TillQuandel wants to merge 1 commit into
TillQuandel wants to merge 1 commit into
Conversation
…n Titeln
Problem: cross_reference Stage B nahm Pipeline-Geschwister (Notes desselben
Laufs) nur bei Titel-/Alias-Token-Overlap >= 1 als related-Kandidat. Zwei
semantisch fast identische Notes mit lexikalisch disjunkten Titeln
("Wissensorganisation" ↔ "Semantisches Retrieval mit Assoziationsnetz",
Body-cos 0,97) teilten 0 Tokens → kein Kandidat → beide related: []. Frühere
Läufe klappten nur, weil Geschwister-Titel Stamm-Tokens teilten (ISP/ADKAR/Phase).
Fix ADDITIV (_rank_sibling_candidates): Token-Overlap ODER Body-Embedding-Cosine
>= Schwelle. Token-Pfad unverändert (kein Regressionsrisiko, lexikalische Treffer
ranken via 1.0+overlap strikt vor semantischen). Embeddings nur für token-disjunkte
Geschwister (Draft-Embedding einmal gecacht). LLM bleibt finaler Arbiter über den Link.
Schwelle 0,85 EMPIRISCH kalibriert (nicht geraten): verwandte Geschwister 0,97-0,985,
fremde Paare 0,73-0,76 → klare Trennung. Fixt nebenbei das dt.-Komposita-Problem
(Wissens-/Informations-organisation: gleiches Konzept, 0 gemeinsame Tokens).
Diagnose cross-model verifiziert (Qwen: Root-Cause bestätigt, Ansatz empfohlen;
Codex: Implementierung 0 Bugs). Real-Sanity: die zwei echten Notes werden jetzt
gegenseitig Kandidat. TDD (7 Tests), cross_reference-Suite (42) grün.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
cross_referenceStage B nahm Pipeline-Geschwister (Notes desselben Laufs) nur alsrelated-Kandidat, wenn ihr Titel/Alias-Token-Overlap ≥ 1 war. Zwei semantisch fast identische Notes mit lexikalisch disjunkten Titeln fielen durch:related: []+ „0 sinnvolle related-Links".Frühere Läufe klappten nur, weil Geschwister-Titel Stamm-Tokens teilten („ISP Stage …", „ADKAR …", „… Phase (Merrill FPI)"). Es war keine Regression, sondern ein blinder Fleck der Oberflächen-Token-Heuristik (verschärft durch dt. Komposita: „Wissens-"/„Informations-organisation" = gleiches Konzept, 0 Tokens).
Fix (additiv, kein Regressionsrisiko)
_rank_sibling_candidates: Geschwister wird Kandidat bei Token-Overlap ODER Body-Embedding-Cosine ≥ Schwelle.1.0 + overlapstrikt vor semantischen.Schwelle 0,85 empirisch kalibriert (nicht geraten): verwandte Geschwister 0,97–0,985, fremde Paare 0,73–0,76 → klare Trennung mit Marge. ENV-überschreibbar (
ATOMIC_AGENT_SIBLING_SEMANTIC_COSINE).Verifikation
🤖 Generated with Claude Code